package cn.signalpha.modules.base.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 数据传输对象实体类
 *
 * @author signalpha
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "MsgPushDTO对象", description = "消息推送")
public class MsgPushDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	private Long id;

    @NotBlank
    @ApiModelProperty(value = "标题")
    private String title;

	@NotBlank
    @ApiModelProperty(value = "内容")
    private String body;

	@NotNull
    @ApiModelProperty(value = "推送类型：1全部用户 2个人 3批量推")
    private Integer pushType;

    @ApiModelProperty(value = "推送目标id")
    private String pushKey;

	@NotBlank
    @ApiModelProperty(value = "点击跳转类型")
    private String clickType;

    @ApiModelProperty(value = "点击跳转目标")
    private String clickKey;

}
